-
-
Notifications
You must be signed in to change notification settings - Fork 488
Simplify ACL request refresh detection (improves #4409) #4483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Simplify ACL request refresh detection (improves #4409) #4483
Conversation
9f17f56
to
07cb21d
Compare
related #4484 |
|
||
std::string CalculateACLRequestFingerprint(); | ||
bool HasACLRequestsChanged(); | ||
protected: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For accessing members, but i made a better solution now 👍🏻
Is this really a fix? Or this became an oversimplification refactor over a bug? |
Yes it fixes #4484 I have tested it. |
I've written my concerns about this and the prior PR: |
This PR basically does revert that previous PR and replaces it with a simpler fix for the original bug. How it works now is that if a resource has ACL requests, it doesn't have to be started to output the requests to the server console, if you changed them and did refresh, the changes wouldn't be registered, but now when doing refresh, the changes are registered to these non started resources. Currently the only way to get the ACL requests to get registered is to rename the resource and execute refresh. Now you don't have to rename a resource. |
refreshall triggers the acl reload check |
That's true, but you may not want to restart all changed resources, it can be very slow and freeze the server for 1 minute, or you just might not want some changes to be applied. |
This PR replaces the complex ACL fingerprinting from PR #4409 with a much simpler and more efficient approach.
Thanks for @ArranTuna for mentioning a proper solution.